<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitResalePackageSku extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('resale_package_sku', function (Blueprint $table) {
            $table->comment = '转售与package sku的关系表';

            $table->integer('resale_id')->index()->comment('转售id');
            $table->integer('package_sku_id')->index()->comment('package sku id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('resale_package_sku');
    }
}
